// 定义详情模块的ts类型
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}

// 医院详情数据
export interface HosPitalDetail {
    "bookingRule": {
        "cycle": number,
        "releaseTime": string,
        "stopTime": string,
        "quitDay": number,
        "quitTime": string,
        "rule": string[]
    },
    "hospital": {
        "id": string,
        "createTime": string,
        "updateTime": string,
        "isDeleted": number,
        "param": {
            "hostypeString": string,
            "fullAddress": string
        },
        "hoscode": string,
        "hosname": string,
        "hostype": string,
        "provinceCode": string,
        "cityCode": string,
        "districtCode": string,
        "address": string,
        "logoData": string
        "intro": null,
        "route": string,
        "status": number,
        "bookingRule": null
    }
}

// 医院详情返回数据ts
export interface HospitalDetail extends ResponseData {
    data: HosPitalDetail
}

// 科室详情
export interface DepartmentDatail {
    "depcode": string,
    "depname": string,
    "children"?: DepartmentDatail[]
}
// 储存科室
export type DepartmentArr = DepartmentDatail[]
// 科室总数据
export interface AllDepartmentDetail extends ResponseData {
    data: DepartmentArr[]
}

// 登录接口携带的参数
export interface LoginData {
    phone: string,
    code: string
}

// 登录接口返回的用户登录的信息
export interface UserInfo {
    name: string,
    token: string
}
// 登录接口返回的数据的ts类型
export interface UserLoginResponseData extends ResponseData {
    data: UserInfo
}
// 微信扫码返回数据的ts类型
export interface WxLogin {
    "redirectUri": string,
    "appid": string,
    "scope": string,
    "state": string
}

// 微信
export interface WxLoginResponseData extends ResponseData {
    data: WxLogin
}
// 获取科室数据ts类型
export interface BaseMap {
    "workDateString": string,
    "releaseTime": string,
    "bigname": string,
    "stopTime": string,
    "depname": string,
    "hosname": string
}
export interface WorkData {
    "workDate": string,
    "workDateMd": string,
    "dayOfWeek": string,
    "docCount": number,
    "reservedNumber": number,
    "availableNumber": number,
    "status": number
}
export type BookingScheduleList = WorkData[]
export interface HospitalWorkerData extends ResponseData {
    data: {
        total: number,
        BookingScheduleList: BookingScheduleList,
        BaseMap: BaseMap
    }
}
// 医生排班
export interface HospitalDoctor {
    "id": string,
    "createTime": string,
    "updateTime": string,
    "isDeleted": string,
    "param": {
        "dayOfWeek": string,
        "depname": string,
        "hosname": string
    },
    "hoscode": string,
    "depcode": string,
    "title": string,
    "docname": string,
    "skill": string,
    "workDate": string,
    "workTime": number,
    "reservedNumber": number,
    "availableNumber": number,
    "amount": number,
    "status": number,
    "hosScheduleId": string
}
// 数组包含全部医生
export type DocArr=HospitalDoctor[]
export interface HospitalDoctorResponseData extends ResponseData{
    data:DocArr
}